﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YXShop.IDAL.Templates
{
    public interface ILabelType
    {
        /// <summary>
        /// 增加一条数据
        /// </summary>
        int Add(YXShop.Model.Templates.LabelType model);
        /// <summary>
        /// 更新一条数据
        /// </summary>
        int Update(YXShop.Model.Templates.LabelType model);
        /// <summary>
        /// 删除一条数据
        /// </summary>
        int Delete(int id);
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        YXShop.Model.Templates.LabelType GetModel(int id);
        /// <summary>
        /// 得到集合
        /// </summary>
        /// <returns></returns>
        List<YXShop.Model.Templates.LabelType> GetAll();
        /// <summary>
        /// 获得数据列表
        /// </summary>
        ChangeHope.DataBase.DataByPage GetList();
    }
}
